package com.nbsaas.boot.data.rest.convert;

import com.nbsaas.boot.data.data.entity.QuerySnippet;
import com.nbsaas.boot.data.api.domain.simple.QuerySnippetSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* -列表对象转换器
*/

public class QuerySnippetSimpleConvert implements Converter<QuerySnippetSimple, QuerySnippet> {




@Override
public QuerySnippetSimple convert(QuerySnippet source) {
    QuerySnippetSimple result = new QuerySnippetSimple();

                result.setNote(source.getNote());
                result.setName(source.getName());
                result.setId(source.getId());
                result.setAddDate(source.getAddDate());
                result.setLastDate(source.getLastDate());


    return result;
}

}